import itchat,time
t = str(time.time()).replace(".","")+".jpg"
print(t)
# itchat.login(picDir="aaa.jpg")
# itchat.run()
# time.sleep(2)
# friends = itchat.get_friends()
# for fri in friends:
#     print(fri)
#imgName = "static/123.jpg"
itchat.auto_login(picDir=t)
#itchat.run()
print("getfriends")
friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
    print(friend)